package com.xing.feign;

import com.xing.Utils.Result;
import com.xing.dto.UserRoleSaveDTO;
import com.xing.feign.FallbackFactory.OssFeignClientFallbackFactory;
import com.xing.feign.FallbackFactory.SysUserRoleFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "conference-admin-server" ,contextId = "SysUserRoleFeign",fallbackFactory = SysUserRoleFeignClientFallbackFactory.class)
public interface SysUserRoleFeign {

    @PostMapping(value = "/sys/userRoleRelation/saveUserRole")
    Result saveUserRoleRelation(@RequestBody UserRoleSaveDTO userRoleSaveDTO);

}
